package com.ruoyi.ruoyiyinzheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物料管理业务对象
 *
 * @author ruoyi
 * @date 2023-09-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class StMaterialBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 序号
     */
    @NotBlank(message = "序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String seq;

    /**
     * 物料分类id
     */
   // @NotNull(message = "物料分类id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 物料编码
     */
    @NotBlank(message = "物料编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 物料名称
     */
    @NotBlank(message = "物料名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 供应商id
     */
   // @NotNull(message = "供应商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long supplierId;

    /**
     * 规格型号
     */
    private String model;

    /**
     * 计量单位
     */
    private String unitName;

    /**
     * 价格
     */
    private String price;

    /**
     * 性能
     */
    private String quality;

    /**
     * 备注
     */
    private String remark;

    /**
     * 启用与否，默认为启用
     */
    private String enable;


}
